package com.xuecheng.media.service.impl;

import com.xuecheng.media.mapper.MediaProcessMapper;
import com.xuecheng.media.model.po.MediaProcess;
import com.xuecheng.media.service.MediaProcessMapperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Ren(任佳宝)
 * @Description: MediaFilesMapperServiceImpl
 * @Date: 2024/8/24 下午5:52
 * @Version: 1.0
 */
@Service
public class MediaProcessMapperServiceImpl implements MediaProcessMapperService {

    @Autowired
    MediaProcessMapper mediaProcessMapper;

    /**
     * 获取待处理任务
     *
     * @param shardTotal 执行器数量
     * @param shardIndex 执行器编号
     * @param count 获取记录数
     * @return List<MediaProcess>
     */
    @Override
    public List<MediaProcess> selectListByShardIndex(int shardTotal, int shardIndex, int count) {


        return mediaProcessMapper.selectListByShardIndex(shardTotal, shardIndex, count);
    }
}
